package cn.ruituo.adv5;

import java.io.FileNotFoundException;
import java.io.FileReader;

public class CharTest {
    public static void main(String[] args) {
        try {
            FileReader reader=new FileReader("E:\\temp\\java72\\advance\\java72.txt");
//            int ch=reader.read();
//            System.out.println(ch+":"+(char)ch);
            int c=0;
            reader.skip(4);
            while((c=reader.read())!=-1){
                System.out.println(c+":"+(char)c);
            }
            reader.close();//finally
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
